home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
loa_and_the_island.swf
/
scripts
/
DefineSprite_772
/
frame_10
/
PlaceObject2_698_170
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-03-17
|
472b
|
22 lines
onClipEvent(enterFrame){
if(_root.paused == false and this.hitTest(_root.lavafilter))
{
if(random(100) == 50)
{
xgoal = xinit + random(101) - 50;
ygoal = yinit + random(101) - 50;
}
xmove += (xgoal - _X) / 10;
ymove += (ygoal - _Y) / 10;
_X = _X + xmove;
_Y = _Y + ymove;
xmove /= 1.1;
ymove /= 1.1;
play();
}
if(_root.paused == true)
{
stop();
}
}